Tricubic interpolation

In the mathematical subfield numerical analysis, tricubic interpolation is a method for obtaining values at arbitrary points in 3D space of a function defined on a regular grid. The approach involves approximating the function locally by an expression of the form

\sum_{i=0}^3 \sum_{j=0}^3 \sum_{k=0}^3 a_{ijk} x^i y^j z^k.

This form has 64 coefficients a_{ijk}; requiring the function to have a given value or given directional derivative at a point places one linear constraint on the 64 coefficients.

The term tricubic interpolation is used in more than one context; some experiments measure both the value of a function and its spatial derivatives, and it is desirable to interpolate preserving the values and the measured derivatives at the grid points. Those provide 32 constraints on the coefficients, and another 32 constraints can be provided by requiring smoothness of higher derivatives; see [1][2] for details.

In other contexts, we can obtain the 64 coefficients by considering a 3x3x3 grid of small cubes surrounding the cube inside which we evaluate the function, and fitting the function at the 64 points on the corners of this grid.

The cubic interpolation article indicates that the method is equivalent to a sequential application of one dimensional cubic interpolators. Indeed, define \mathrm{CINT}_x(u_{-1}, u_0, u_1, u_2) as the value of the unique cubic polynomial with f(-1) = u_{-1}, \ldots, f(2) = u_2 evaluated at x. We have \mathrm{CINT}_x(u_{-1}, u_0, u_1, u_2) = \mathbf{v}_x \cdot \left( u_{-1} u_0 u_1 u_2 \right) for some vector \mathbf{v}_x which is a function of x alone. Therefore, the tricubic interpolator is equivalent to


\begin{align}
t(x,y) & {} = \mathrm{CINT}_z\left( r(x,y,-1), r(x,y,0), r(x,y,1), r(x,y,2)\right) & (x,y \in -1 \ldots 2) \\
u(x) & {} = \mathrm{CINT}_y\left( t(x,-1), t(x,0), t(x,1), t(x,2)\right) & (x \in -1 \ldots 2) \\
f & {} = \mathrm{CINT}_x\left( u(-1), u(0), u(1), u(2)\right)
\end{align}

At first glance, it might seem more convenient to use the 21 calls to \mathrm{CINT} described above instead of the {64 \times 64} matrix described in Lekien and Marsden.[3] However, proper implementation using a sparse format for the matrix (that is fairly sparse) makes the later more efficient. This aspect is even much more pronounced when interpolation is needed at several locations inside the same cube. In this case, the {64 \times 64} matrix is used once to compute the interpolation coefficients for the entire cube. The coefficients are then stored and used for interpolation at any location inside the cube. In comparison, sequential use of one-dimensional integrators \mathrm{CINT}_x performs extremely poorly for repeated interpolations because each computational step must be repeated for each new location.

See also

References

  1. ^ Tricubic interpolation in three dimensions
  2. ^ Tricubic Interpolation in Three Dimensions (2005), by F. Lekien, J. Marsden, Journal of Numerical Methods and Engineering
  3. ^ Tricubic Interpolation in Three Dimensions (2005), by F. Lekien, J. Marsden, Journal of Numerical Methods and Engineering

External links